using System;
using NUnit.Framework;
using Snoop.Commons;

namespace Snoop.Commons.Tests
{
	[TestFixture]
	public class ContextStorageTest
	{
		[Test]
		public void SetAndGetTest()
		{
			Object inputData = new Object();
			ContextStorage.Current.SetData("test1",inputData);
			Object outputData= ContextStorage.Current.GetData("test1");
			Assert.AreSame(inputData,outputData);
		}

		[Test]
		public void GetNullTest()
		{
			Object outputData= ContextStorage.Current.GetData("keyForNull");
			Assert.IsNull(outputData);
		}

	}
}
